package com.jtpay.sdk.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Steven on 2016/7/11 0011.
 */

public class PlatformInfo implements Parcelable {
    private String mName;
    private String mUserCode;
    private String mComkey;

    public PlatformInfo(String name, String userCode, String comkey) {
        mName = name;
        mUserCode = userCode;
        mComkey = comkey;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(mName);
        dest.writeString(mUserCode);
        dest.writeString(mComkey);
    }

    private PlatformInfo(Parcel in) {
        mName = in.readString();
        mUserCode = in.readString();
        mComkey = in.readString();
    }

    public static final Parcelable.Creator<PlatformInfo> CREATOR = new Parcelable.Creator<PlatformInfo>() {

        @Override
        public PlatformInfo createFromParcel(Parcel source) {
            return new PlatformInfo(source);
        }

        @Override
        public PlatformInfo[] newArray(int size) {
            return new PlatformInfo[size];
        }
    };

    public String getName() {
        return mName;
    }

    public String getUserCode() {
        return mUserCode;
    }

    public String getComkey() {
        return mComkey;
    }
}
